package com.ys.entity.advanced;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_advert].[dbo].ADS_Sp_Targeting", catalog="Id")
public class AdsSpTargeting extends BaseEntity<AdsSpTargeting> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PortfolioId", nameJava="portfolioId", typeDataBase="varchar")
	private String portfolioId;
	@YsField(nameDataBase="CampaignId", nameJava="campaignId", typeDataBase="varchar")
	private String campaignId;
	@YsField(nameDataBase="CampaignName", nameJava="campaignName", typeDataBase="varchar")
	private String campaignName;
	@YsField(nameDataBase="AdGroupId", nameJava="adGroupId", typeDataBase="varchar")
	private String adGroupId;
	@YsField(nameDataBase="AdGroupName", nameJava="adGroupName", typeDataBase="varchar")
	private String adGroupName;
	@YsField(nameDataBase="CampaignBudgetCurrencyCode", nameJava="campaignBudgetCurrencyCode", typeDataBase="varchar")
	private String campaignBudgetCurrencyCode;
	@YsField(nameDataBase="KeywordId", nameJava="keywordId", typeDataBase="varchar")
	private String keywordId;
	@YsField(nameDataBase="Keyword", nameJava="keyword", typeDataBase="varchar")
	private String keyword;
	@YsField(nameDataBase="KeywordType", nameJava="keywordType", typeDataBase="varchar")
	private String keywordType;
	@YsField(nameDataBase="Impressions", nameJava="impressions", typeDataBase="int")
	private Integer impressions;
	@YsField(nameDataBase="Clicks", nameJava="clicks", typeDataBase="int")
	private Integer clicks;
	@YsField(nameDataBase="ClickThruRate", nameJava="clickThruRate", typeDataBase="decimal")
	private BigDecimal clickThruRate;
	@YsField(nameDataBase="Cost", nameJava="cost", typeDataBase="decimal")
	private BigDecimal cost;
	@YsField(nameDataBase="CostPerClick", nameJava="costPerClick", typeDataBase="decimal")
	private BigDecimal costPerClick;
	@YsField(nameDataBase="AcosClicks7d", nameJava="acosClicks7d", typeDataBase="decimal")
	private BigDecimal acosClicks7d;
	@YsField(nameDataBase="RoasClicks7d", nameJava="roasClicks7d", typeDataBase="decimal")
	private BigDecimal roasClicks7d;
	@YsField(nameDataBase="UnitsSoldClicks1d", nameJava="unitsSoldClicks1d", typeDataBase="int")
	private Integer unitsSoldClicks1d;
	@YsField(nameDataBase="Sales1d", nameJava="sales1d", typeDataBase="decimal")
	private BigDecimal sales1d;
	@YsField(nameDataBase="Purchases1d", nameJava="purchases1d", typeDataBase="int")
	private Integer purchases1d;
	@YsField(nameDataBase="UnitsSoldSameSku1d", nameJava="unitsSoldSameSku1d", typeDataBase="int")
	private Integer unitsSoldSameSku1d;
	@YsField(nameDataBase="AttributedSalesSameSku1d", nameJava="attributedSalesSameSku1d", typeDataBase="decimal")
	private BigDecimal attributedSalesSameSku1d;
	@YsField(nameDataBase="PurchasesSameSku1d", nameJava="purchasesSameSku1d", typeDataBase="int")
	private Integer purchasesSameSku1d;
	@YsField(nameDataBase="UnitsSoldOtherSku7d", nameJava="unitsSoldOtherSku7d", typeDataBase="int")
	private Integer unitsSoldOtherSku7d;
	@YsField(nameDataBase="SalesOtherSku7d", nameJava="salesOtherSku7d", typeDataBase="decimal")
	private BigDecimal salesOtherSku7d;
	@YsField(nameDataBase="TopOfSearchImpressionShare", nameJava="topOfSearchImpressionShare", typeDataBase="decimal")
	private BigDecimal topOfSearchImpressionShare;
	@YsField(nameDataBase="ShopNameMc", nameJava="shopNameMc", typeDataBase="varchar")
	private String shopNameMc;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="varchar")
	private String shopId;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="Date", nameJava="date", typeDataBase="varchar")
	private String date;
	@YsField(nameDataBase="CUser", nameJava="cUser", typeDataBase="varchar")
	private String cUser;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public AdsSpTargeting setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPortfolioId() {
		return portfolioId;
	}
	public AdsSpTargeting setPortfolioId(String portfolioId) {
		this.portfolioId = portfolioId;
		return this;
	}
	public String getCampaignId() {
		return campaignId;
	}
	public AdsSpTargeting setCampaignId(String campaignId) {
		this.campaignId = campaignId;
		return this;
	}
	public String getCampaignName() {
		return campaignName;
	}
	public AdsSpTargeting setCampaignName(String campaignName) {
		this.campaignName = campaignName;
		return this;
	}
	public String getAdGroupId() {
		return adGroupId;
	}
	public AdsSpTargeting setAdGroupId(String adGroupId) {
		this.adGroupId = adGroupId;
		return this;
	}
	public String getAdGroupName() {
		return adGroupName;
	}
	public AdsSpTargeting setAdGroupName(String adGroupName) {
		this.adGroupName = adGroupName;
		return this;
	}
	public String getCampaignBudgetCurrencyCode() {
		return campaignBudgetCurrencyCode;
	}
	public AdsSpTargeting setCampaignBudgetCurrencyCode(String campaignBudgetCurrencyCode) {
		this.campaignBudgetCurrencyCode = campaignBudgetCurrencyCode;
		return this;
	}
	public String getKeywordId() {
		return keywordId;
	}
	public AdsSpTargeting setKeywordId(String keywordId) {
		this.keywordId = keywordId;
		return this;
	}
	public String getKeyword() {
		return keyword;
	}
	public AdsSpTargeting setKeyword(String keyword) {
		this.keyword = keyword;
		return this;
	}
	public String getKeywordType() {
		return keywordType;
	}
	public AdsSpTargeting setKeywordType(String keywordType) {
		this.keywordType = keywordType;
		return this;
	}
	public Integer getImpressions() {
		return impressions;
	}
	public AdsSpTargeting setImpressions(Integer impressions) {
		this.impressions = impressions;
		return this;
	}
	public Integer getClicks() {
		return clicks;
	}
	public AdsSpTargeting setClicks(Integer clicks) {
		this.clicks = clicks;
		return this;
	}
	public BigDecimal getClickThruRate() {
		return clickThruRate;
	}
	public AdsSpTargeting setClickThruRate(BigDecimal clickThruRate) {
		this.clickThruRate = clickThruRate;
		return this;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public AdsSpTargeting setCost(BigDecimal cost) {
		this.cost = cost;
		return this;
	}
	public BigDecimal getCostPerClick() {
		return costPerClick;
	}
	public AdsSpTargeting setCostPerClick(BigDecimal costPerClick) {
		this.costPerClick = costPerClick;
		return this;
	}
	public BigDecimal getAcosClicks7d() {
		return acosClicks7d;
	}
	public AdsSpTargeting setAcosClicks7d(BigDecimal acosClicks7d) {
		this.acosClicks7d = acosClicks7d;
		return this;
	}
	public BigDecimal getRoasClicks7d() {
		return roasClicks7d;
	}
	public AdsSpTargeting setRoasClicks7d(BigDecimal roasClicks7d) {
		this.roasClicks7d = roasClicks7d;
		return this;
	}
	public Integer getUnitsSoldClicks1d() {
		return unitsSoldClicks1d;
	}
	public AdsSpTargeting setUnitsSoldClicks1d(Integer unitsSoldClicks1d) {
		this.unitsSoldClicks1d = unitsSoldClicks1d;
		return this;
	}
	public BigDecimal getSales1d() {
		return sales1d;
	}
	public AdsSpTargeting setSales1d(BigDecimal sales1d) {
		this.sales1d = sales1d;
		return this;
	}
	public Integer getPurchases1d() {
		return purchases1d;
	}
	public AdsSpTargeting setPurchases1d(Integer purchases1d) {
		this.purchases1d = purchases1d;
		return this;
	}
	public Integer getUnitsSoldSameSku1d() {
		return unitsSoldSameSku1d;
	}
	public AdsSpTargeting setUnitsSoldSameSku1d(Integer unitsSoldSameSku1d) {
		this.unitsSoldSameSku1d = unitsSoldSameSku1d;
		return this;
	}
	public BigDecimal getAttributedSalesSameSku1d() {
		return attributedSalesSameSku1d;
	}
	public AdsSpTargeting setAttributedSalesSameSku1d(BigDecimal attributedSalesSameSku1d) {
		this.attributedSalesSameSku1d = attributedSalesSameSku1d;
		return this;
	}
	public Integer getPurchasesSameSku1d() {
		return purchasesSameSku1d;
	}
	public AdsSpTargeting setPurchasesSameSku1d(Integer purchasesSameSku1d) {
		this.purchasesSameSku1d = purchasesSameSku1d;
		return this;
	}
	public Integer getUnitsSoldOtherSku7d() {
		return unitsSoldOtherSku7d;
	}
	public AdsSpTargeting setUnitsSoldOtherSku7d(Integer unitsSoldOtherSku7d) {
		this.unitsSoldOtherSku7d = unitsSoldOtherSku7d;
		return this;
	}
	public BigDecimal getSalesOtherSku7d() {
		return salesOtherSku7d;
	}
	public AdsSpTargeting setSalesOtherSku7d(BigDecimal salesOtherSku7d) {
		this.salesOtherSku7d = salesOtherSku7d;
		return this;
	}
	public BigDecimal getTopOfSearchImpressionShare() {
		return topOfSearchImpressionShare;
	}
	public AdsSpTargeting setTopOfSearchImpressionShare(BigDecimal topOfSearchImpressionShare) {
		this.topOfSearchImpressionShare = topOfSearchImpressionShare;
		return this;
	}
	public String getShopNameMc() {
		return shopNameMc;
	}
	public AdsSpTargeting setShopNameMc(String shopNameMc) {
		this.shopNameMc = shopNameMc;
		return this;
	}
	public String getShopId() {
		return shopId;
	}
	public AdsSpTargeting setShopId(String shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public AdsSpTargeting setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public AdsSpTargeting setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getDate() {
		return date;
	}
	public AdsSpTargeting setDate(String date) {
		this.date = date;
		return this;
	}
	public String getCUser() {
		return cUser;
	}
	public AdsSpTargeting setCUser(String cUser) {
		this.cUser = cUser;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public AdsSpTargeting setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public AdsSpTargeting setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public AdsSpTargeting setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static AdsSpTargeting adsSpTargeting(
		String portfolioId,
		String campaignId,
		String campaignName,
		String adGroupId,
		String adGroupName,
		String campaignBudgetCurrencyCode,
		String keywordId,
		String keyword,
		String keywordType,
		Integer impressions,
		Integer clicks,
		BigDecimal clickThruRate,
		BigDecimal cost,
		BigDecimal costPerClick,
		BigDecimal acosClicks7d,
		BigDecimal roasClicks7d,
		Integer unitsSoldClicks1d,
		BigDecimal sales1d,
		Integer purchases1d,
		Integer unitsSoldSameSku1d,
		BigDecimal attributedSalesSameSku1d,
		Integer purchasesSameSku1d,
		Integer unitsSoldOtherSku7d,
		BigDecimal salesOtherSku7d,
		BigDecimal topOfSearchImpressionShare,
		String shopNameMc,
		String shopId,
		String vGsJc,
		String vGsBm,
		String date,
		String cUser,
		Integer status
			) {
		AdsSpTargeting entity = new AdsSpTargeting();
		entity.setPortfolioId(portfolioId);
		entity.setCampaignId(campaignId);
		entity.setCampaignName(campaignName);
		entity.setAdGroupId(adGroupId);
		entity.setAdGroupName(adGroupName);
		entity.setCampaignBudgetCurrencyCode(campaignBudgetCurrencyCode);
		entity.setKeywordId(keywordId);
		entity.setKeyword(keyword);
		entity.setKeywordType(keywordType);
		entity.setImpressions(impressions);
		entity.setClicks(clicks);
		entity.setClickThruRate(clickThruRate);
		entity.setCost(cost);
		entity.setCostPerClick(costPerClick);
		entity.setAcosClicks7d(acosClicks7d);
		entity.setRoasClicks7d(roasClicks7d);
		entity.setUnitsSoldClicks1d(unitsSoldClicks1d);
		entity.setSales1d(sales1d);
		entity.setPurchases1d(purchases1d);
		entity.setUnitsSoldSameSku1d(unitsSoldSameSku1d);
		entity.setAttributedSalesSameSku1d(attributedSalesSameSku1d);
		entity.setPurchasesSameSku1d(purchasesSameSku1d);
		entity.setUnitsSoldOtherSku7d(unitsSoldOtherSku7d);
		entity.setSalesOtherSku7d(salesOtherSku7d);
		entity.setTopOfSearchImpressionShare(topOfSearchImpressionShare);
		entity.setShopNameMc(shopNameMc);
		entity.setShopId(shopId);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setDate(date);
		entity.setCUser(cUser);
		entity.setStatus(status);
		return entity;
	}
}